package main

import "fmt"

func main() {

	a := Cat{"白色"}
	b := map[int]string{1: "念", 2: "威"}
	c := make([]interface{}, 0, 10)
	print("你好")
	print1("你好")
	//print2("123",123,123.3,a,b)
	c = append(c, "念念", "灰灰", "宁宁")
	c = append(c, b, a, 710580513)

	print2(c, c)
}

type Cat struct {
	color string
}

type project interface {
}

func print(a interface{}) {
	fmt.Println(a)
}

func print1(a project) {
	fmt.Println(a)
}

func print2(a ...project) {
	fmt.Println("a的长度为", len(a))
	for i, v := range a {
		fmt.Println(i, v)
	}
}
